package org.jeecg.modules.farming.product.service.impl;

import org.jeecg.modules.farming.news.mapper.NewsPraiseMapper;
import org.jeecg.modules.farming.product.entity.ProductPraise;
import org.jeecg.modules.farming.product.mapper.ProductPraiseMapper;
import org.jeecg.modules.farming.product.service.IProductPraiseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 供求关系-点赞表
 * @Author: jeecg-boot
 * @Date:   2020-12-16
 * @Version: V1.0
 */
@Service
public class ProductPraiseServiceImpl extends ServiceImpl<ProductPraiseMapper, ProductPraise> implements IProductPraiseService {
    @Autowired
    private ProductPraiseMapper productPraiseMapper;
    @Override
    public ProductPraise getOneByOpenIdAndCommentId(String openId, String id) {
        return productPraiseMapper.getOneByOpenIdAndCommentId(openId,id);
    }
}
